package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * APP用户关注信息表
 * </p>
 *
 * @author kzj
 * @since 2024-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ApUserFollow implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 关注作者ID
     */
    private Integer followId;

    /**
     * 粉丝昵称
     */
    private String followName;

    /**
     * 关注度	            0 偶尔感兴趣	            1 一般	            2 经常	            3 高度
     */
    private Short level;

    /**
     * 是否动态通知
     */
    private Short isNotice;

    /**
     * 创建时间
     */
    private Date createdTime;

    public enum Level{
        OCCASIONAL((short)0),
        GENERAL((short)1),
        OFTEN((short)2),
        HIGH((short)3)
        ;
        private Short value;
        Level(Short value)
        {
            this.value=value;
        }

        public Short getValue() {
            return value;
        }
    }


}
